#include "tcpserver.h"
#include "tcpclient.h"

int main(){
    TcpServer ts(4999);

    TcpClient tc(std::string("192.168.1.1"), 8001);
    tc.start();

    auto getSigns_ = std::bind(&TcpClient::ReadData, &tc, std::placeholders::_1);
    auto sendSignsType_ = std::bind(&TcpClient::WriteData, &tc, std::placeholders::_1);
    ts.start(getSigns_, sendSignsType_);
    return 0;
}
